package com.cyb.myfriend.constant;

/**
 * 状态码
 *
 * @author cyb
 * @date 2024/08/12 09:03
 **/
public enum StatusCode {
    SUCCESS(2000, "成功"),
    PARAMS_ERROR(4002, "参数异常"),
    NULL_PARAMS(4003, "参数为空"),
    NO_LOGIN(4000, "未登录"),
    NO_AUTH(4001, "没有权限"),
    NO_USER(4004, "用户不存在！"),
    NO_TEAM(4006, "队伍不存在！"),
    OPERATION_ERROR(4005, "操作失败！"),
    SYSTEM_ERROR(5000, "系统异常，请联系管理员!");


    private final int code;

    private final String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
